<!-- BEGIN: main -->
<input type="hidden" id="table_id" value="{table.ID}"></input>
<p class="table_header">TABLE</p>
<table width="100%">
    <tr align="center">
        <th >Name</th>
        <th >Source</th>
        <th >Physical Name</th>
        <th ><p>Contents</p>    </th>
        <th >Length</th>
        <th >Description</th>
</tr>
<tr align="center">
    <td><input type="text" id="table_name" value="{table.name}"></td>
    <td><input type="text" id="table_source"value="{table.source}"></td>
    <td><input type="text" id="table_physical_name"value="{table.physicalName}"></td>
    <td><input type="text" id="table_contents" value="{table.contents}"></td>
    <td><input type="text" id="table_length" value="{table.length}"></td>
    <td><input type="text" id="table_description" value="{table.description}"></td>

</tr>
<tr> <td colspan="6"><div style="float: right"><button value="commit" id="commit_table_button">Commit</button> </div></td></tr>
</table>

<p  class="table_header">FIELDS</p>
<table width="100%"  border="1" id="fields_table_id">
    <tr>
        <th>Name</th>
        <th>Position</th>
        <th>Length</th>
        <th>Type</th>
        <th>Description</th>
        <th>Primary</th>
        <th></th>
        <th></th>
    </tr>
    {field_rows}
    <tr> <td colspan="8"><div style="float: right"><button value="commit" id="new_field">Get New Field</button> </div></td></tr>
</table>
<!-- END: main -->